

function submitSelfPwd() {
	var check = null;

	/*----------------*/
	var oldselfPwd = $("#selfPwd\\:oldpassword");
	if (oldselfPwd.val().length == 0 || oldselfPwd.val().length < 5
			|| oldselfPwd.val().length > 20) {
		$("#selfPwd\\:oldpassword").next().html("* 密码长度为5-20位！");
		if (!check)
			check = $("#selfPwd\\:oldpassword");
	} else {
		$("#selfPwd\\:oldpassword").next().html("*");
	}
	/*----------------*/
	var selfPwd = $("#selfPwd\\:password");
	if (selfPwd.val().length == 0 || selfPwd.val().length < 5
			|| selfPwd.val().length > 20) {
		$("#selfPwd\\:password").next().html("* 密码长度为5-20位！");
		if (!check)
			check = $("#selfPwd\\:password");
	} else {
		$("#selfPwd\\:password").next().html("*");
	}
	/*----------------*/
	var _selfPwd = $("#selfPwd\\:ckpassword");
	if (_selfPwd.val().length == 0 || _selfPwd.val().length < 5
			|| _selfPwd.val().length > 20) {
		$("#selfPwd\\:ckpassword").next().html("* 确认密码长度为5-20位！");
		if (!check)
			check = $("#selfPwd\\:ckpassword");
	} else {
		if ($("#selfPwd\\:password").val() != $("#selfPwd\\:ckpassword").val()) {
			$("#selfPwd\\:ckpassword").next().html("* 确认密码与密码不符合！");
			if (!check)
				check = $("#selfPwd\\:ckpassword");
		} else {
			$("#selfPwd\\:ckpassword").next().html("*");
		}
	}

	if (check) {
		check.focus();
		return false;
	} else {
		alert('xxx');
		return true;
	}
}

function submitSelfInfo(){
	/*--------*/
	var check = null;
	/*----------------*/
	if ($("#selfUserForm\\:userName").val().length == 0) {
		$("#selfUserForm\\:userName").next().html("* 用户名不能够为空！");
		if (!check)
			check = $("#selfUserForm\\:userName");
	} else {
		$("#selfUserForm\\:userName").next().html("*");
	}

	
	/*----------------*/
	if ($("#selfUserForm\\:phone").val().length == 0) {
		$("#selfUserForm\\:phone").next().html("* 联系电话不能够为空！");
		if (!check)
			check = $("#selfUserForm\\:phone");
	} else {
		if (!(/^(0(10|2[0-57-9]|[3-9]\d{2})-)?\d{7,8}$/
				.test($("#selfUserForm\\:phone").val()))) {
			$("#selfUserForm\\:phone").next()
					.html("* 联系电话格式不正确 格式为(***{*}-*******{*})！");
			if (!check)
				check = $("#selfUserForm\\:phone");
		} else {
			$("#selfUserForm\\:phone").next().html("*");
		}
	}
	/*----------------*/
	if ($("#selfUserForm\\:mobile").val().length > 0) {
		if (!(/^1[3|5]\d{9,10}$/.test($("#selfUserForm\\:mobile").val()))) {
			$("#selfUserForm\\:mobile").next().html("* 手机号码格式不正确 格式为([13|15]*)！");
			if (!check)
				check = $("#selfUserForm\\:mobile");
		} else {
			$("#selfUserForm\\:mobile").next().html(" ");
		}
	} else {
		$("#selfUserForm\\:mobile").next().html(" ");
	}
	/*----------------*/
	if ($("#selfUserForm\\:email").val().length == 0) {
		$("#selfUserForm\\:email").next().html("* 邮箱不能够为空！");
		if (!check)
			check = $("#selfUserForm\\:email");
	} else {
		if (!(/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/
				.test($("#selfUserForm\\:email").val()))) {
			$("#selfUserForm\\:email").next().html("* 邮箱格式不正确 格式为(*@*.*)！");
			if (!check)
				check = $("#selfUserForm\\:email");
		} else {
			$("#selfUserForm\\:email").next().html("*");
		}
	}
	if (check) {
		check.focus();
		return false;
	}else {
		return true;
	}
}